﻿using Basic.FormGatewaryModular.Interface;
using Basic.FormRemoteModel;
using Basic.FormRemoteModel.FormDataSource;
using Basic.FormRemoteModel.FormDataSource.Model;
using Basic.FormRemoteModel.FormDataSourceItem;
using Basic.FormRemoteModel.FormDataSourceItem.Model;

namespace Basic.FormGatewaryModular.Services
{
    internal class FormSourceService : IFormSourceService
    {
        public SourceItem[] GetItems ( string sourKey )
        {
            return new GetDataSourceItem
            {
                SourceKey = sourKey
            }.Send();
        }
        public DataSourceItem[] Ges ( FormTableType tableType )
        {
            return new GetFormSourceItems
            {
                TableType = tableType
            }.Send();
        }
    }
}
